import request from '/@/utils/request';

export function getRateList(params: any) {
  return request({
    url: '/admin/energyRateManage/page',
      method: 'get', 
      params
  })
}
export function addRate(params: any) {
  return request({
    url: '/admin/energyRateManage',
      method: 'post', 
      data: params
  })
} 
export function editRate(params: any) {
  return request({
    url: '/admin/energyRateManage',
      method: 'put', 
      params
  })
} 
export function delRate(id: any) {
  return request({
    url: '/admin/energyRateManage?rateId='+id,
      method: 'delete',  
  })
}  